export default{
    formatTime(times){
        if(times){
            const timer = new Date(times);
            const Y = timer.getFullYear();
            const M = timer.getMonth()+1;
            const d = timer.getDate();
            const h = timer.getHours();
            const m = timer.getMinutes();
            const s = timer.getSeconds();
            return `${Y}/${M}/${d}   ${h}:${m}:${s}`
        }else{
            return ''
        }
    }
}